package com.ruoyi.client.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商品展示类（与数据库、Mapper字段完全匹配）
 * @Author：HuaQP
 * @Date：2025/10/13
 */
@Data
public class GoodsVo {
    @ApiModelProperty(value = "商品id", position = 1)
    private Integer goodsId;  // 对应表中goods_id

    @ApiModelProperty(value = "店铺id", position = 2)
    private Long storeId;  // 对应表中store_id

    @ApiModelProperty(value = "店铺名称", position = 3)
    private String storeName;  // 对应表中store_id

    @ApiModelProperty(value = "分类名称", position = 4)
    private String categoryName;  // 新增：对应表中category_name

    @ApiModelProperty(value = "商品名称", position = 5)
    private String goodsName;  // 对应表中goods_name

    @ApiModelProperty(value = "商品图片", position = 6)
    private String goodsImg;  // 对应表中goods_img

    @ApiModelProperty(value = "商品价格", position = 7)
    private BigDecimal goodsPrice;  // 对应表中price

    @ApiModelProperty(value = "商品原价", position = 8)
    private BigDecimal originalPrice;  // 新增：对应表中original_price

    @ApiModelProperty(value = "销量", position = 9)
    private Integer salesNum;  // 新增：对应表中sales_num

    @ApiModelProperty(value = "商品描述", position = 10)
    private String goodsDesc;  // 新增：对应表中goods_desc

    @ApiModelProperty(value = "是否在售", position = 11)
    private Byte isOnSale;  // 新增：对应表中is_on_sale
}